import React from "react";

class BordDetail extends React.Component{
    constructor(props){
        super(props);

        this.state={
            detailItem:this.props.location.query.el
        }
    }

    componentWillMount(){
        console.log(this.state.detailItem)
    }

    render(){
        return(
            <div className="detail_container">
                {/* <div className="detail_wrapper">
                <div className="list_wrapper_item_left">
                    <div className="list_wrapper_item_title" 
                     onClick={()=>{
                      this.props.history.push({
                          pathname:"/BordDetail",
                          query:{
                              el
                          }
                      })
                     }}>{el.title} </div>
                    <div className="list_wrapper_item_content">{el.content}</div>
                  </div>
                  <div className="list_wrapper_item_right">
                      <img src={el.img}/>
                  </div>
                </div> */}
            </div>
        )
    }

}

export default BordDetail;